﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Admin.Domain;

namespace Windows.Admin.Service
{
    public interface IAppService
    {
        /// <summary>
        /// 获取应用列表基础数据
        /// </summary>
        /// <param name="types"></param>
        /// <returns></returns>
        Task<List<AppResponse>> GetBasicApps(params int[] types);
        /// <summary>
        /// 获取级别应用列表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<AppResponse>> GetLevelApps(long id);
        /// <summary>
        /// 获取当前用户的桌面快捷方式列表
        /// </summary>
        /// <returns></returns>
        Task<List<AppResponse>> GetCurrentUserShortuts();
        /// <summary>
        /// 应用管理窗体
        /// </summary>
        /// <returns></returns>
        Task<List<AppResponse>> Query();
        /// <summary>
        /// 获取id的应用详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<AppResponse> Detail(int id);
        /// <summary>
        /// 应用保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(AppSaveRequest request);
        /// <summary>
        /// 应用删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        /// <exception cref="ApiException"></exception>
        Task Remove(long id);
    }
}
